package org.jeecg.modules.purchase.service;

import org.jeecg.modules.purchase.entity.PurchaseProviderCertification;
import org.jeecg.modules.purchase.entity.PurchaseProviderContacts;
import org.jeecg.modules.purchase.entity.PurchaseProviderGoods;
import org.jeecg.modules.purchase.entity.PurchaseProvider;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 供应商
 * @Author: jeecg-boot
 * @Date:   2022-11-15
 * @Version: V1.0
 */
public interface IPurchaseProviderService extends IService<PurchaseProvider> {

	/**
	 * 添加一对多
	 *
	 * @param purchaseProvider
	 * @param purchaseProviderCertificationList
	 * @param purchaseProviderContactsList
	 * @param purchaseProviderGoodsList
	 */
	public void saveMain(PurchaseProvider purchaseProvider,List<PurchaseProviderCertification> purchaseProviderCertificationList,List<PurchaseProviderContacts> purchaseProviderContactsList,List<PurchaseProviderGoods> purchaseProviderGoodsList) ;
	
	/**
	 * 修改一对多
	 *
	 * @param purchaseProvider
	 * @param purchaseProviderCertificationList
	 * @param purchaseProviderContactsList
	 * @param purchaseProviderGoodsList
	 */
	public void updateMain(PurchaseProvider purchaseProvider,List<PurchaseProviderCertification> purchaseProviderCertificationList,List<PurchaseProviderContacts> purchaseProviderContactsList,List<PurchaseProviderGoods> purchaseProviderGoodsList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
